<html>
<head><meta charset="utf-8"><title>Clippy code coverage · clippy · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/index.html">clippy</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Clippy.20code.20coverage.html">Clippy code coverage</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="216439076"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Clippy%20code%20coverage/near/216439076" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Clippy.20code.20coverage.html#216439076">(Nov 12 2020 at 08:25)</a>:</h4>
<p>Clippy coverage:<br>
clippy-driver: <a href="https://clippy-driver-cov.flip1995.com/">https://clippy-driver-cov.flip1995.com/</a><br>
cargo-clippy: <a href="https://cargo-clippy-cov.flip1995.com/">https://cargo-clippy-cov.flip1995.com/</a></p>
<p>I created this with </p>
<div class="codehilite"><pre><span></span><code>RUSTFLAGS=&quot;-Zinstrument-coverage&quot; LLVM_PROFILE_FILE=&quot;$(pwd)/cov/clippy%m.profraw&quot; cargo +master test
llvm-profdata merge -sparse cov/clippy*.profraw -o cov/clippy.profdata
llvm-cov show -Xdemangler=rustfilt target/debug/cargo-clippy -instr-profile=cov/clippy.profdata --show-line-counts-or-regions --output-dir=cov/cargo-clippy --format=html
llvm-cov show -Xdemangler=rustfilt target/debug/clippy-driver -instr-profile=cov/clippy.profdata --show-line-counts-or-regions --output-dir=cov/clippy-driver --format=html
</code></pre></div>
<p>WDYT? Looks pretty good to me. Most of the things that aren't covered are Err cases.</p>



<a name="216439254"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Clippy%20code%20coverage/near/216439254" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> ThibsG <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Clippy.20code.20coverage.html#216439254">(Nov 12 2020 at 08:27)</a>:</h4>
<p>looks nice! can we exclude deps?</p>



<a name="216439331"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Clippy%20code%20coverage/near/216439331" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Clippy.20code.20coverage.html#216439331">(Nov 12 2020 at 08:28)</a>:</h4>
<p>I don't know. I'll ask.</p>



<a name="216526171"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Clippy%20code%20coverage/near/216526171" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Clippy.20code.20coverage.html#216526171">(Nov 12 2020 at 20:47)</a>:</h4>
<p><span class="user-mention" data-user-id="342307">@ThibsG</span> I think it is not clear yet if that is possible or already supported. See <a href="#narrow/stream/233931-t-compiler.2Fmajor-changes/topic/Implement.20LLVM-compatible.20source-based.20cod.20compiler-team.23278">this Zulip thread</a> for (maybe) more info.</p>



<a name="216632624"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Clippy%20code%20coverage/near/216632624" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> ThibsG <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Clippy.20code.20coverage.html#216632624">(Nov 13 2020 at 16:08)</a>:</h4>
<p>thanks <span class="user-mention" data-user-id="264664">@flip1995</span> , indeed not very clear, more investigation is required.<br>
anyway for the record I also linked this thread into <a href="https://github.com/rust-lang/rust-clippy/issues/3986">https://github.com/rust-lang/rust-clippy/issues/3986</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>